package cn.hongwei.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.hongwei.pojo.Stock;
import cn.hongwei.service.StockService;
import cn.hongwei.mapper.StockMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 */
@Service
public class StockServiceImpl extends ServiceImpl<StockMapper, Stock>
    implements StockService{

    @Transactional
    @Override
    public void reduce(Integer productId) {
        baseMapper.reduce(productId);
    }
}




